import Home from 'views/Home'
import Goods from '_c/goods'
import Seller from '_c/Seller'
import Ratings from '_c/Ratings'
import shopcart from '_c/shopcart'
import food from '_c/food'

export default (
  [
    {
      path: '/',
      name: 'home',
      component: Home,
      redirect: {
        name: 'goods'
      },
      children: [
        {
          path: 'goods',
          name: 'goods',
          components: {
            default: Goods,
            shopcart: shopcart
          }
        },
        {
          path: 'food',
          name: 'food',
          component: food
        },
        {
          path: 'seller',
          name: 'seller',
          components: {
            default: Seller,
            shopcart: shopcart
          }
        },
        {
          path: 'ratings',
          name: 'ratings',
          components: {
            default: Ratings,
            shopcart: shopcart
          }
        }
      ]
    }
  ]
)
